package com.woniuxy.commons.service;

import com.woniuxy.commons.entity.AnswerSheet;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/24 0024-下午 4:08
 */
@FeignClient(name = "STUDENT")
public interface RemoteAnswerService {
    @GetMapping("/answerSheet/get/{paperId}/{userid}")
    AnswerSheet getAnswerSheetByRemoteUser(@PathVariable("paperId") Integer paperid, @PathVariable("userid") Integer userid);
    @GetMapping("/answerSheet/getByStatus/{paperId}/{status}")
    List<AnswerSheet> getAnswerSheetByStatusAndPaper(@PathVariable("paperId") Integer paperid, @PathVariable("status") Integer status);
}
